package com.kinon.norogamilk.util;

import android.app.Activity;
import android.content.Context;
import android.widget.ImageView;

import com.youth.banner.Banner;


/**
 * Created by superdroid on 2017/2/27.
 */

public class BannerImageLoader extends com.youth.banner.loader.ImageLoader {
    Banner banner;
    Activity activity;

    public BannerImageLoader(Banner banner, Activity activity) {
        this.banner = banner;
        this.activity = activity;
    }

    @Override
    public void displayImage(Context context, Object path, ImageView imageView) {
        MyImageLoader.getInstance().loadBannerListImage(activity, 500 + "", imageView, banner);
//        Glide.with(context).load(path).into(imageView);
    }
}
